package com.sub.repository;

import com.sub.pojo.Dict;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

@Repository
public interface DictRepository extends JpaRepository<Dict,Integer> {


    Dict findByDictName(String dictName);

    Dict findByDictDescription(String dictDescription);

    @Query(value = "update from ws_dict where dict_name = ?",nativeQuery = true)
    void deleteByDictName(String name);


}
